package com.thl.levelcache.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 修改缓存
 *
 * @Author: zhao yi
 * @Date : 2020/5/23 21:38
 */
@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface LvCachePut {

  /***
   * key
   * @return
   */
  String key();

  /***
   * 过期时间
   * @return
   */
  long timeout();
}